package mr.fresh.entity.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @CLassName SaveGoodRequest
 * @Description TODO 商品请求模型
 * @Author mr.jl
 * @Date 2019/6/7 16:54
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("FindListGoodRequest")
public class FindListGoodRequest {

    @ApiModelProperty(value = "商品名称")
    private String goodName;

    @ApiModelProperty(value = "商品编码")
    private String goodNo;

    @ApiModelProperty(value = "上下架（1上架，2下架)")
    private Byte goodStatus;

    @ApiModelProperty(value = "选择页")
    private Integer page;

    @ApiModelProperty(value = "每页数量")
    private Integer size;

    /**
     * @Description: 在get方法减去1
     * @Param: []
     * @return: java.lang.Integer
     * @Author: Mr.jl
     * @Date: 2019/6/13
     */
    public Integer getPage() {
        return page - 1;
    }
}
